package cz.muni.fi.pa165.sme.api.to;


/**
 * @author Amruz
 */
public class BurnedCaloriesTO {

	private Long id;
	private SportActivityTO sportActivity;
	private Long calories;
	private Float weight;
	private Float speed;

	public Long getId() {
		return id;
	}

	public void setId(final Long id) {
		this.id = id;
	}

	public SportActivityTO getSportActivity() {
		return sportActivity;
	}

	public void setSportActivity(final SportActivityTO sportActivity) {
		this.sportActivity = sportActivity;
	}

	public Float getSpeed() {
		return speed;
	}

	public void setSpeed(final Float speed) {
		this.speed = speed;
	}

	public void setCalories(final Long calories) {
		this.calories = calories;
	}

	public Long getCalories() {
		return calories;
	}

	public void setWeight(final Float weight) {
		this.weight = weight;
	}

	public Float getWeight() {
		return weight;
	}

	@Override
	public boolean equals(final Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		final BurnedCaloriesTO that = (BurnedCaloriesTO) o;

		if (id != null ? !id.equals(that.id) : that.id != null) return false;

		return true;
	}

	@Override
	public int hashCode() {
		return id != null ? id.hashCode() : 0;
	}

	@Override
	public String toString() {
		return "BurnedCalories{" +
				"id=" + id +
				", sportActivity=" + sportActivity +
				", calories=" + calories +
				", weight=" + weight +
				", speed=" + speed +
				'}';
	}
}
